package com.mxsat.system.dao.impl;

import java.util.Map;

import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mxsat.common.dao.DaoImpl;
import com.mxsat.system.dao.SysDictDao;
import com.mxsat.system.entity.SysDict;

@Repository
public class SysDictDaoImpl extends DaoImpl<BaseMapper<SysDict>, SysDict> implements SysDictDao {

	@Override
	public IPage<SysDict> selectDictByPage(IPage<SysDict> page, Map<String, Object> condition) throws Exception {
		QueryWrapper<SysDict> queryWrapper = new QueryWrapper<>();
		queryWrapper.allEq(condition);
		return this.page(page, queryWrapper);
	}

}
